package com.qtyx.nms.mvp.model.network

import com.qtyx.nms.mvp.base.BaseBean
import com.qtyx.nms.mvp.model.bean.*
import io.reactivex.Observable
import retrofit2.http.*

/**
 * 接口
 */
interface ApiServer {

    companion object {
        /**接口主地址 */
        //宝鸡三院
//        const val BASE_URL = "http://192.168.100.40:10011/"
        //扶风大众医院
        const val BASE_URL = "http://172.16.254.15:10011/"
    }

    /**
     * 登录
     */
    @POST("renren-fast/sys/login")
    fun login(@Tag tag: String, @Body map: Map<String, String>): Observable<LoginBean>

    /**
     * 获取护理数据
     */
    @GET("renren-fast/nursing/tblnursingprograms/nursingScreenShow")
    fun getNurseData(@Tag tag: String, @Query("deptId") deptId: String): Observable<NurseBean>
    /**
     * 获取护理等级和颜色
     */
    @GET("renren-fast/sys/sysdictdata//getLevelColour")
    fun getNurseGrade(@Tag tag: String): Observable<NurseGradeBean>
    /**
     * 获取值班信息
     */
    @GET("renren-fast/nursing/tblscheduletemplate/getListByDeptId")
    fun getZhiBanInfo(@Tag tag: String,@Query("deptId") deptId: String): Observable<ZhiBanBean>
    /**
     * 获取消息列表
     */
    @GET("renren-fast/nursing/departmentnotice/getListByDeptId")
    fun getMessageList(@Tag tag: String,@Query("deptId") deptId: String): Observable<MessageBean>
    /**
     * 获取医师列表
     */
    @GET("renren-fast/nursing/doctorpatientinformation/doctorPatientInformationShow")
    fun getYiShiList(@Tag tag: String,@Query("deptId") deptId: String): Observable<YiShiBean>
    /**
     * 更新阅读状态
     */
    @POST("renren-fast/nursing/departmentnotice/update")
    fun updateReadType(@Tag tag: String, @Body map: Map<String, String>): Observable<BaseBean>
}